//5-2
package Holyshit;

import java.util.Scanner;
public class Main {
	public static void main(String[] args)
	{
		Scanner a=new Scanner(System.in);
		StringBuilder str = new StringBuilder();
		while (true) 
		{
			int n=a.nextInt();
		    for (int i = 0; i < n; i++) 
		    {
		    	str.append(i);
		    }
		    int num1=a.nextInt();
		    int num2=a.nextInt();
		    System.out.println(str.substring(num1, num2));
		}
	}
}